#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">权限管理</a>
	  	<a><cite>编辑</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	<form id="updatePerm" class="layui-form" action="#(ctx)/cmsPerm/updatePerm" method="post" onsubmit="return false;">
  		#(token)
  		<input class="layui-hide" type="text" name="id" value="#(perm.id)">
  		<div class="layui-form-item">
    		<label class="layui-form-label">请求路径</label>
    		<div class="layui-input-block">
      			<input type="text" name="actionKey" class="layui-input layui-disabled" value="#(perm.actionKey)" disabled>
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">所属类</label>
    		<div class="layui-input-block">
      			<input type="text" name="controller" class="layui-input layui-disabled" value="#(perm.controller)" disabled>
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">备注</label>
    		<div class="layui-input-block">
      			<input type="text" name="remark" class="layui-input" value="#(perm.remark)">
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">状态</label>
    		<div class="layui-input-block">
      			<select name="status">
				  	<option value="1" #if('1'==perm.status) selected #end>正常</option>
				  	<option value="2" #if('2'==perm.status) selected #end>删除</option>
				</select>
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<div class="layui-input-block">
      			<button class="layui-btn" onclick="ajaxSaveForm('#updatePerm')">立即提交</button>
      			<a class="layui-btn layui-btn-primary" href="javascript:history.go(-1);">返回</a>
    		</div>
  		</div>
  	</form>
</div>

#@jsInit()
#end